/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package GameLogic;
import Enums.*;
/**
 *
 * @author Ollowain
 */
public class Head extends Element
{
    //Konstruktor
    public Head( int posx, int posy )
    {
        super( posx, posy , "snakehead" );
    }

    //Kopf in eine Richtung bewegen
    public void move( Direction direction )
    {
        switch( direction )
        {
            case WEST:
                posX--;
                break;
            case EAST:
                posX++;
                break;
            case NORTH:
                posY--;
                break;
            case SOUTH:
                posY++;
                break;
        }
    }
}
